<?php
class BaseAction extends Action{
	function _initialize(){
		if (!$_SESSION['administer']['id'] && $_SESSION['administer']['name']){
			$this->redirect("Index/index",0,0,0);
		}
		import('@.ORG.Power');
		$objpower = new Power();
		$power = $objpower->index();

		if($_SESSION['administer']){
			if(!in_array(MODULE_NAME.'/'.ACTION_NAME,$_SESSION['powerall'])){
				$this->assign("waitSecond",3);
				$this->error("你没有对操作的权限~~~~");
			}

		}else{
			$this->redirect("Index/index",0,0,"");
		}
	}
}